<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <include file="Public:head"/>
  <link rel="stylesheet" media="all" type="text/css" href="/Public/css/jquery-ui.css" />
  <link rel="stylesheet" media="all" type="text/css" href="/Public/css/jquery-ui-timepicker-addon.css" />
</head>
<body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 留言详情</strong></div>
    <div>
      <div class="panel-head">
        <textarea style="width: 80%;height: 120px;resize: none;border:0px;">{$message}</textarea>
      </div>
      <div class="panel-head"><strong class="icon-heart">喜欢</strong></div>
      <div class="panel-head">
        <volist name="likes" id="like">
          <img src="{$like.headimgurl}" alt="" width="70" height="50" />{$like.nickname}
        </volist>
      </div>
      <div class="panel-head"><strong class="icon-comment">评论</strong></div>
      <div class="panel-head">
        <div>

        <img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png" alt="" width="70" height="50" />123
      </div>
        <div>
          <img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png" alt="" width="70" height="50" />123
        </div>
      </div>
      <div class="panel-head"><strong class="icon-thumbs-down">举报</strong></div>
      <div class="panel-head">
        <div>
          <img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png" alt="" width="70" height="50" />123
        </div>
      </div>
      <div>
        <img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png" alt="" width="70" height="50" />123
      </div>
    </div>
      </div>
    </div>
  </div>
</body>
<script type="text/javascript" src="/Public/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/Public/js/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript" src="/Public/js/jquery-ui-timepicker-zh-CN.js"></script>
</html>
<script type="text/javascript">

   $(function () {
       $('.del_btn').click(function(){
           var message_id =$(this).attr('data-id');
           swal({
               title: "您确认要删除么？",
               text: "",
               type: "info",
               showCancelButton: true,
               confirmButtonColor: "#AEDEF4",
               cancelButtonText: "取消",
               confirmButtonText: "确定",
               closeOnConfirm: false,
               closeOnCancel: true
           }, function(isConfirm){
               if (isConfirm) {
                   $.post('{:U("del_message")}',{"message_id":message_id},function(msg){
                       if(msg.status == 0){
                           sweetAlert({title:'',text: msg.info,type: "warning",timer:2000,showConfirmButton: false});
                       }
                       if(msg.status == 1){
                           sweetAlert({title:'',text: msg.info,type: "success",showConfirmButton: false});
                           setTimeout(function(){window.location.reload()},2000);
                       }
                   });
               }
           });

       });

   })

</script>